<template>
  <div>
    <button @click="isshow = !isshow">显示隐藏</button>
    <!-- <h1 v-show="isshow" class="come">123456789</h1>
    enter-active-class进入
    leave-active-class离开
     -->
    <transition-group 
      name="animate__animated animate__bounce" 
			enter-active-class="animate__swing"
			leave-active-class="animate__backOutUp" appear>
      <!-- 一上来加载 -->
      <h1 v-show="!isshow" key="1">123456789</h1>
      <h1 v-show="isshow" key="2">123456789</h1>
    </transition-group>
  </div>
</template>

<script>
import  'animate.css'
export default {
  name: "test",
  data() {
    return {
      isshow: true,
    };
  },
};
</script>

<style scoped>
h1 {
  background-color: skyblue;
  /* transition: 0.5s linear; */
}


</style>>